package itsm.isperp.job;

import itsm.isperp.framework.message.impl.EmailReader;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * 
 * 邮箱报障定时器
 * 
 * @author lizx
 * @date 2015-4-5
 * @since 1.0
 * 
 */
@Service
public class EmailRequestJob implements Job {

	public static final Logger logger = LoggerFactory
			.getLogger(EmailRequestJob.class);

	@Override
	public void execute(JobExecutionContext context)
			throws JobExecutionException {

	  EmailReader reader = new EmailReader();
		try {
			reader.read();
		} catch (Exception e) {
			logger.error(e.getMessage());
		}

	}
}
